'use strict';
const Joi = require('joi');

exports.checkReq = function * (next) {
  const schema = {
    machine: Joi.string().required(),
    method: Joi.string(),
    userId: Joi.string(),
    service: Joi.string(),
    requestId: Joi.string(),
    ip: Joi.string(),
    agent: Joi.string(),
    url: Joi.string(),
    interface: Joi.string()
  }
  yield next;
}
